<?php

/*

  Action	$5

  +1 Card, +1 Action, +1 Buy, +$1.

 */

class Market extends Card implements iAction, iKingdom, iBasic {

    public function __construct() {
        parent::__construct("Market", 5);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+1 Card",
            "+1 Action",
            "+1 Buy",
            "+1$");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addActions(1);
        $game->addBuys(1);
        $game->addMoney(new Price(1));
        $drawed_cards = $game->drawCards(1);
        
         ScreenDisplay::addScreenMessage($game, true, "get +1 action, +1 buy, +1$  and draw ".  nicePrint($drawed_cards), "get +1 action, +1 buy, +1$ and draws ".sizeof($drawed_cards). " cards");
        $game->cardActionFinished();
        return true;
    }

}

?>